<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>xss模拟攻击</title>
</head>
<script charset="utf-8"
        src="http://static.mayikt.com/jquery-1.11.1.min.js?t=2118bbe3-b1d9-44f7-9eb2-eb629674f7de"
        type="text/javascript"></script>
<script>
    function bt1() {
        $.ajax({
            url: "http://127.0.0.1:60/getUserLoginLog", success: function (result) {
                var code = result.code;
                if (code == 200) {
                    var arrays = result.data;
                    var equipment = arrays[0].equipment;
                    $("#dv1").html(equipment);

                }

            }
        });
    }
</script>
<body>

<input id="bt" onclick="bt1()" type="button" value="提交数据">
<div id="dv1">

</div>
</body>
</html>